package com.aaa.system.service.impl;

import com.aaa.entity.Dept;
import com.aaa.entity.Menu;
import com.aaa.system.dao.DeptDao;
import com.aaa.system.dao.MenuDao;
import com.aaa.system.service.DeptService;
import com.aaa.system.service.MenuService;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author 崔灿
 * @Date 2023/02/28 14:08
 * @ClassName DeptServiceImpl
 * @Description
 * @Version 1.0
 */

@Service
public class DeptServiceImpl extends ServiceImpl<DeptDao, Dept> implements DeptService {
    @Autowired
    private DeptDao deptDao;
    @Override
    public Result finddept(Integer id) {
        Dept dept = deptDao.selectById(id);
        return new Result(2000,"查询成功",dept);
    }
}
